home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0058.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  1.6 KB  |  39 lines

  1. GREGORY,
  2.  
  3. I don't think the hotspot determines the collision: I think it is just the part
  4. of the bob that is positioned according to the coordinates you determine. AMOS
  5. detects collision when the bobs/sprites outlines hit, but if you want to make
  6. sure the outlines you want as the outlines of the bob are those that trigger a
  7. collision then you set the background colour of your bob as transparent using
  8. Make Mask.
  9.  
  10. One thing i would like to know: I see there is an example of a breakout game in
  11. the AMOS Pro help files, but the blocks are all represented by bobs. I think
  12. this is a cheat, as an attempt to program a proper breakout game using bobs
  13. only would probably exceed the maximum number of bobs.
  14.  
  15. I thought it might be possible to do this using Paste Bob to set up a screen,
  16. but how could one program a collision detection system that would make the ball
  17. bounce off the outline of each block, and then allow one to delete it and
  18. replace it with a background icon?
  19.  
  20. I know breakout is the oldest game there is, but I am only programming for fun,
  21. and as an educational experience.
  22.  
  23. Thanks,
  24.  
  25. Jonathan
  26. _______________________________________________________________________________
  27. From: GREGORY on Wed, Dec 7, 1994 14:27
  28. Subject: About Hotspot
  29. To: amos-list@access.digex.net
  30.  
  31.     Please could anyone answer me this:
  32.         During collision detection, AMOS uses hotspot's position to 
  33. determine if a collision took place? For instance when I have 
  34. placed my hotspot to the upper-right and a bad guy comes from the 
  35. left, what'd happend? The bad bob would overlap my bob?
  36. P.S. Sorry about my terrible English... 
  37.  
  38.  
  39.